﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DynaPrecision.StandardFunction
{
	public class Exponential<TInput, TResult> : FunctionAnalysis.IFunction<TInput,TResult>
	{

		public Func<TInput, TResult> Functor
		{
			get { return x=>(TResult)(dynamic)Math.Exp((dynamic)x); }
		}

		public FunctionAnalysis.IFunction<TInput, TResult> Derivative
		{
			get { return new Exponential<TInput,TResult>(); }
		}

		public FunctionAnalysis.IFunction<TInput, TResult> Integral
		{
			get { return new Exponential<TInput,TResult>(); }
		}
	}
}
